package com.softer.wxzj.entity;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;
/**
 * LogOperation class
 * @author zcz
 * @date 2019/1/16
 */
@Data
public class LogOperation implements Serializable {

    private String id;
    private Date createTime;

    /**
     * 被操作的对象
     */
    private String operationUnit;
    /**
     * 方法名
     */
    private String method;
    /**
     * 参数
     */
    private String args;
    /**
     * 操作人
     */
    private String creater;
    /**
     * 日志描述
     */
    private String describe;
    /**
     * 操作类型
     */
    private String operationType;
    /**
     * 方法运行时间
     */
    private Long runTime;
    /**
     * 方法返回值
     */
    private String returnValue;
    /**
     * 请求地址
     */
    private String url;
    /**
     * 客户端ip
     */
    private String ip;
    /**
     * 客户端浏览器
     */
    private String browser;
    /**
     * 客户端操作系统
     */
    private String os;


    @Override
    public String toString() {
        return "OperationLog{" +
                "id='" + id + '\'' +
                ", createTime=" + createTime +
                ", operationUnit='" + operationUnit + '\'' +
                ", method='" + method + '\'' +
                ", args='" + args + '\'' +
                ", describe='" + describe + '\'' +
                ", operationType='" + operationType + '\'' +
                ", runTime=" + runTime +
                ", returnValue='" + returnValue + '\'' +
                ", url=" + url +
                ", ip='" + ip + '\'' +
                ", url=" + browser +
                ", ip='" + os + '\'' +
                '}';
    }
}
